@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-main {
  min-height: 100%
}

.app-container {
  padding: 10px;
}

//搜索栏样式
.filter-container {
  .el-card__body {
    padding: 10px 12px;
  }

  .el-form-item,
  .el-form-item--smal {
    margin-bottom: 0px;
  }
}

//操作栏样式
.operate-container {
  margin-top: 10px;

  .el-card__body {
    padding: 10px 12px;
    line-height: 28px;
  }
}

.operate-container .btn-add {
  float: right;
  margin-left: 10px;
}

// 全局日期区间选择框样式
.el-date-editor--daterange.el-input__inner {
  width: 240px;
}

//表格栏样式
.table-container {
  margin-top: 10px;
}

//批量操作栏样式
.batch-operate-container {
  display: inline-block;
  margin-top: 20px;
}

//分页栏样式
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

//添加、更新表单样式
.form-container {
  width: 720px;
  margin: 20px;
  padding: 30px 30px 10px 30px;
}

//主标题
.font-extra-large {
  font-size: 20px;
  color: #303133;
}

//标题
.font-title-large {
  font-size: 18px;
  color: #303133;
}

//小标题
.font-title-medium {
  font-size: 16px;
  color: #303133;
}

//正文
.font-medium {
  font-size: 16px;
  color: #606266;
}

//正文
.font-small {
  font-size: 14px;
  color: #606266;
}

//正文（小）
.font-extra-small {
  font-size: 13px;
  color: #606266;
}

.color-main {
  color: #409EFF;
}

.color-success {
  color: #67C23A;
}

.color-warning {
  color: #E6A23C;
}

.color-danger {
  color: #F56C6C;
}

.color-info {
  color: #909399;
}

.width-80 {
  width: 80px;
}

// 全局修改滚动条样式
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

// 滚动条里面的小方块
::-webkit-scrollbar-thumb {
  background-color: rgba(190, 190, 190, 0.5);
  border-radius: 3px;

  &:hover {
    background-color: rgba(99, 99, 99, 0.5);
    margin-left: 2px;
  }
}

.el-form{
  .el-select{
    width: 100%;
  }
}
.el-date-editor{
  .el-range-separator{
    width: 10%;
  }
}

.el-dialog__wrapper{
  .el-dialog__body{
    max-height: 60vh!important;
    overflow-y: auto;
  }
}
.form-panel{
  width: 60%;
  margin: 30px;
  .el-form-item{
    display: flex;
    flex-flow: column wrap;
  }
  .el-form-item__label{
    text-align: left;
    width: 100%!important;
    color: #333;
  
  }
  .el-form-item__content{
    margin: 0!important;
  }
  .tips{
    font-size: 12px;
    color: #999;
  }
  .name{
    font-size: 12px;
    color: #666;
  
  }
}

.form-btns{
  text-align: center;
  margin-bottom: 20px;
}

.green{
  color: #090!important;
}

.red{
  color: red!important;
}



.success{
  color: #67c23a!important;
}
.danger{
  color: #f56c6c!important;
}

.img-box {
  img {
    width: 50px;
    height: 50px;
    border: solid 1px #eee;
    cursor: pointer;
  }
}